<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<!-- <meta http-equiv="X-UA-Compatible" content="IE=8"> -->
	<meta name="window-size" content="title=自定义板块&width=730&height=500&scroll=no"/>
	<title>自定义板块</title>
	<link rel="stylesheet" href="css/main.css">
	<!-- <link rel="stylesheet" href="dist/main.css"> -->
</head>
<body>
	<div class="title-div" id="moveDom">
		<span class="title-span"></span>
		<span class="title-close" id="close"></span>
	</div>
	<div class="container clearfix">
		<div class="hot-place">
			<span  title="收起" id="slide_list"></span>
		</div>
		<div class="sidebar-tipbox" id="sidebar-tipbox">板块创建成功！</div>
		<div class="tip" id="tip">点击拖拽至于左侧板块完成添加</div>
		<div class="tip" id="plate-tip"></div>
		<div class="tip" id="drag-tip">拖拽中</div>
		<div id="view_div_userguide" class="mask-guide" style="display:none;">
			<a href="###" id="view_a_userguide" class="btn-guide"></a>
		</div>
		<div class="sidebarbox" id="sidebarbox_container">
			<div id="sidebarbox">
				<div class="sidebar-title">
					<span class="list-title">板块</span>
					<span class="title-explain" title="自定义板块使用说明" id="title-explain"></span>
					<span class="add-img" title="添加板块" id="new-plate"></span>
					<span class="up-img" title="收起" id="operate-plate"></span>
				</div>
				<div id="sidebarbox-items" class="sidebarbox-items">

				</div>
				<div class="sidebar-title">
					<span class="list-title">动态板块</span>
					<span class="title-explain" title="自定义板块使用说明" id="dynamic-title-explain"></span>
					<span class="add-img" title="添加动态板块" id="dynamic-new-plate"></span>
					<span class="up-img" title="收起" id="dynamic-operate-plate"></span>
				</div>
				<div id="dynamic-sidebarbox-items" class="dynamic-sidebarbox-items">

				</div>
			</div>
		</div>
		<div class="contentbox">
			<div class="searchbox" id="view_div_searchbox">
				<span id="view_clearbtn" view_click_stat="cop_581209f9_562" class="searchbar-clear" style="display: none;"></span>
				<span class="searchbar-search" id="view_searchbtn"></span>
				<input type="text" autocomplete="off" id="view_searchinput" data-placeholder="输入条件可以创建动态板块"/>
				<div id="view_search_options_jpjl"></div>
				<div class="searchcontent" id="view_search_options_relation" style="display:none;"></div>
			</div>

			<!--昨日加自选前十的个股-->
			<div id="tenstock" >


		</div>
			<!--昨日加自选前十的个股-->

			<!-- 输入框和表格中间部分 -->
			<div class="operate" id="operate" style="display: none">
				<p class="result-total" id="view_result_condition_num"></p>
				<!-- 选股结果太多时的条件 -->
				<div id="view_result_condition_second" class="moreCondition"></div>
				<!-- 选股结果太多时的条件结束 -->



				<div class="add-plate" id="view_select_choose">
					<div class="select-choose add-plate-lock" id="view_select_choose_name">添加至</div>
					<span class="select-img"></span>
				</div>
				<span class="create-plate" id="view_result_condition_create" style="display:none;">创建条件为动态板块</span>

				<div class="select-option" id="view_select_option_container" style="display: none">
					<div id="view_select_option" style="display: none"></div>
				</div>
			</div>


			<!-- 没有选股结果提示文字 -->
			<div class="noResult" id="noResultView" style="display: none">
				<p class="noResult-tip">暂时没有发现符合您搜索条件的股票，换个条件试试吧！</p>
				<p class="noResult-tip">您也可以<a href="###" id="create-stocks">创建该条件为动态板块</a>，明天来看看！</p>
			</div>
			<!-- 没有选股结果提示文字结束 -->
			<!-- 关注度最高的板块 -->
			<div class="default-content" id="defaultView" >
				<div id="hotbox" class="hotbox">
					<p class="recommend-title">关注度最高的板块<span class="recommend-time">--</span></p>
				</div>
			</div>
			<!-- 关注度最高的板块结束 -->

			<!-- 输入框和表格中间部分结束 -->
			<div class="result-condition-more" id="resultStockView" style="display: none;" >
				<div class="table-headfixed-stock">
					<table class="result-tablehead">
						<thead>
							<tr>
								<td style="text-align: right;width:30px;"><input type="checkbox" class="selectAll btn-selectall"></td>
								<td style="width:50px; _width: 54px;">序1号</td>
								<td style="width:97px; _width: 100px;" class="view_td_sort" field="code" type="desc">代码<span class="sort"></span></td>
								<td style="width:97px; _width: 97px;">简称<span class="sort"></span></td>
								<td style="width:97px; _width: 97px;" class="view_td_sort" field="sortzdf" type="asc">涨跌幅<span class="sort zdf">↓</span></td>
								<td style="width:97px; _width: 70px;" class="view_td_sort" field="newprice" type="desc">股价<span class="sort"></span></td>
							</tr>
						</thead>
					</table>
				</div>
				<div class="result-table">
					<table onselectstart="return false">
						<thead>
							<tr>
								<td style="text-align: right;width:30px;"><input type="checkbox" class="selectAll btn-selectall"></td>
								<td style="width:50px;">序号</td>
								<td style="width:97px;" class="view_td_sort" field="code" type="desc">代码<span class="sort"></span></td>
								<td style="width:97px;">简称<span class="sort"></span></td>
								<td style="width:97px;" class="view_td_sort" field="sortzdf" type="asc">涨跌幅<span class="sort zdf">↓</span></td>
								<td style="width:97px;" class="view_td_sort" field="newprice" type="desc">股价<span class="sort"></span></td>
							</tr>
						</thead>
						<tbody id="view_cur_stock">
						<thead>
							<tr>
								<td colspan="6" class="text-l pl10" id="view_cur_block">--</td>
							</tr>
						</thead>
						</tbody>
						<tbody id="view_code_list">
						</tbody>
					</table>
					<!-- <div class="pagiation clearfix" id="view_result_stock_pag">
					</div> -->
				</div>
			</div>
			<div class="result-condition-more" id="view_result_condition" style="display: none;" >
				<div class="table-headfixed" id="div_headfixed">
					<table class="result-tablehead">
						<thead>
							<tr>
								<td style="text-align: right; width:30px;"><input type="checkbox" class="selectAll btn-selectall"></td>
								<td style="width:50px; _width: 54px;">序号</td>
								<td style="width:97px; _width: 100px;" class="view_td_sort" field="code" type="desc">代码<span class="sort"></span></td>
								<td style="width:97px; _width: 97px;">简称<span class="sort"></span></td>
								<td style="width:97px; _width: 97px;" class="view_td_sort" field="sortzdf" type="asc">涨跌幅<span class="sort zdf">↓</span></td>
								<td style="width:97px; _width: 70px;" class="view_td_sort" field="newprice" type="desc">股价<span class="sort"></span></td>
							</tr>
						</thead>
					</table>
				</div>
				<div class="result-table">
					<table id="view_result_condition_table" onselectstart="return false">
						<thead>
							<tr>
								<td style="text-align: right; width:30px;"><input type="checkbox" class="selectAll btn-selectall"></td>
								<td style="width:50px;">序号</td>
								<td style="width:97px;" class="view_td_sort" field="code" type="desc">代码<span class="sort"></span></td>
								<td style="width:97px;">简称<span class="sort"></span></td>
								<td style="width:97px;" class="view_td_sort" field="sortzdf" type="asc">涨跌幅<span class="sort zdf">↓</span></td>
								<td style="width:97px;" class="view_td_sort" field="newprice" type="desc">股价<span class="sort"></span></td>
							</tr>
						</thead>
						<tbody id="view_result_condition_table_tbody">
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<!-- 遮罩层 -->
	<div id="div-mask" class="mask" style="display: none"></div>
	<!-- 创建板块 -->
	<div id="tip_win_add_plate" class="new-win tip-win-plate" style="display: none;">
		<div class="win-head">
			<p>新建板块</p>
			<span class="win-close" id="span-close-add-plate"></span>
		</div>
		<div class="win-body">
			<p class="win-name">板块名：</p>
			<div class="win-input">
				<input id="input-add-plate-content" status="add" type="text"/>
				<input id="input-add-plate-content-default" type="hidden" value="默认板块">
			</div>
			<p class="warn" id="p_warn_add_plate" style="display:none">板块名重复</p>
			<div class="win-btn">
				<span class="submit" id="span-submit-add-plate">确定</span>
				<span class="cancel" view_click_stat="cop_5812037a_374" id="span-cancel-add-plate">取消</span>
			</div>
		</div>
	</div>
	<!-- 创建动态板块 -->
	<div id="tip-win-add-dynamic-plate" class="new-win tip-win-plate" style="display: none;">
		<div class="win-head">
			<p>新建动态板块</p>
			<span class="win-close" id="span-close-add-dynamic-plate"></span>
		</div>
		<div class="win-body">
			<p class="win-name">板块名：</p>
			<div class="win-input">
				<input id="input-add-plate-name-dynamic" status="add" type="text"/>
				<input id="input-add-plate-content-dynamic" type="hidden" value=""/>
			</div>
			<p class="warn" id="p_warn_add_plate" style="display:none">板块名重复</p>
			<p class="attention1">注：1.动态板块将根据搜索条件实时更新选股结果</p>
			<p class="attention2">2.修改板块名不会影响选股结果</p>
			<div class="win-btn">
				<input class="noprompt-checkbox" type="checkbox" id="noprompt-add-dynamic-plate">
				<span class="noprompt">不再提示</span>
				<span class="submit" id="span-submit-add-dynamic-plate">确定</span>
				<span class="cancel" view_click_stat="cop_5812037a_374" id="span-cancel-add-dynamic-plate">取消</span>
			</div>
		</div>
	</div>

	<div class="tip-win tip-win-plate" id="tip_win_delete_plate" style="display: none">
		<div class="win-head">
			<p>提示</p>
		</div>
		<span class="tip-context">是否删除该板块？</span>
		<div class="tip-btn">
			<span class="submit" id="tip_win_submit" data-id="">确定</span>
			<span class="cancel" view_click_stat="cop_5812076d_445" id="tip_win_cancel">取消</span>
		</div>
	</div>

	<div class="rename-win tip-win-plate" id="tip_win_rename_plate" style="display: none">
		<div class="win-head">
			<p>修改板块名称</p>
			<span class="win-close" id="rename_win_close"></span>
		</div>
		<div class="win-body">
			<p class="win-name">板块名：</p>
			<div class="win-input">
				<input type="text" id="rename_win_input"/>
				<input type="hidden" id="rename_win_data_id">
				<input type="hidden" id="rename_win_oldname">
			</div>
			<p class="warn" id="rename_win_warn" style="display: none;">板块名重复</p>
			<div class="win-btn">
				<span class="submit" id="rename_win_submit">确定</span>
				<span class="cancel" view_click_stat="cop_581207b5_601" id="rename_win_cancel">取消</span>
			</div>
		</div>
	</div>
	<div class="rename-win tip-win-plate" id="tip_win_rename_plate_realtime" style="display: none;">
		<div class="win-head">
			<p>修改动态板块名称</p>
			<span class="win-close" id="rename_win_close_realtime"></span>
		</div>
		<div class="win-body">
			<p class="win-name">板块名：</p>
			<div class="win-input">
				<input type="text" id="rename_win_input_realtime"/>
				<input type="hidden" id="rename_win_data_id_realtime">
				<input type="hidden" id="rename_win_oldname_realtime">
			</div>
			<!-- <p class="win-name">选股策略：</p>
			<div class="win-input">
				<input type="text" id="requery_win_input_realtime"/>
				<input type="hidden" id="requery_win_data_id_realtime">
				<input type="hidden" id="requery_win_oldquery_realtime">
			</div> -->
			<p class="warn" id="rename_win_warn_realtime" style="display: none;">板块名重复</p>
			<p class="attention1">注：1.动态板块将根据搜索条件实时更新选股结果</p>
			<p class="attention2">2.修改板块名不会影响选股结果</p>
			<div class="win-btn">
				<span class="submit" id="rename_win_submit_realtime">确定</span>
				<span class="cancel" view_click_stat="cop_581207b5_601" id="rename_win_cancel_realtime">取消</span>
			</div>
		</div>
	</div>
	<script type="text/template" id="template_plate">
		<div class="items" id="items-data-id-<%= id %>" data-type=<%= type %> data-id=<%= id %>>
			<div class="items-name" id="items-name-data-id-<%= id %>" data-id=<%= id %>>
				<a href="###" id="view-a-data-id-<%= id %>" hidefocus="true" title="<%= inputtxt %>"><%= showtxt %></a><span class="num"><%= num %></span>
			</div>
			<div class="<%= (type === 'realtime' ? 'items-operatemore':'items-operate') %>" id="operate-data-id-<%= id %>" style="display: none">
				<% if (type === 'realtime') { %>
					<span class="items-update-click items-update<%= (update === 0 ? '0' : '1') %>" title="<%= (update === 0 ? "开启更新状态" : "关闭更新状态") %>" id="items-update-data-id-<%= id %>" data-id=<%= id %> update-status=<%= update %>></span>
				<% } %>
				<% if (type !== 'optional') { %>
					<span class="items-change span-plate-rename<%= (type === 'realtime' ? '-realtime' : '')%>" title="重命名" data-type=<%= type %> data-id=<%= id %>></span>
				<% } %>
				<% if (type !== 'fixed' && type !== 'optional') { %>
				<span class="items-delete span-plate-delete" title="删除" data-type=<%= type %> data-id=<%= id %>></span>
				<% } %>
			</div>
		</div>
	</script>

	<script src="http://s.thsi.cn/js/ta.js"></script>
	<script src="../common/scripts/jquery-1.7.1.min.js"></script>
	<script src="../common/scripts/json2.min.js"></script>
	<script src="http://s.thsi.cn/js/seajs/sea.2.min.js"></script>
	<script type="text/javascript" src="http://s.thsi.cn/js/appcenter/appcenternew/ComNFrameWindow.min.20150318.js"></script>
	<script src="./js/static/config.js"></script>
	<!-- <script src="./js/static/bootstrap.js"></script> -->
	<script src="./dist/main.js"></script>
	<script type="text/javascript">
	$(function () {
	//拖动窗口代码
		document.getElementById('close').style.display = '';
		document.getElementById('moveDom').style.display = '';
		var moveDom = document.getElementById('moveDom');
		var closeDom = document.getElementById('close');
		new ComNFrameWindow({'move': moveDom, 'close': closeDom });
	//拖动窗口代码结束
	});
	</script>
</body>
</html>
